#include "widget.h"
#include "ui_widget.h"
#include <fstream>
#include <iostream>
#include<QString>
#include <QDebug>
#include <string>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    std::ifstream in("./config.txt");
    if(in.is_open())
    {
        qDebug()<<"open file error!";
    }
    std::string info;
    while(std::getline(in,info))
    {
        ui->comboBox->addItem(QString::fromStdString(info));
    }
    in.close();
}

Widget::~Widget()
{
    delete ui;
}

